import request from '@/utils/request'

const api = {
    std_matter_formList: '/std_matter/matterFormList',
    flowableFormList: '/act_dsn_form_define/list',
    bindForm: '/std_matter/bindForm'
}

/**
 *查询事项表单配置列表
 * @param {*} body
 * @returns
 */
export function list (body) {
    return request({
        url: api.std_matter_formList,
        method: 'post',
        data: body
    })
}

/**
 *查询流程表单定义列表
 * @param {*} body
 * @returns
 */
 export function flowableFormList (body) {
    return request({
        url: api.flowableFormList,
        method: 'post',
        data: body
    })
}

/**
 *事项绑定流程表单
 * @param {*} parameter
 * @returns
 */
export function bindForm (parameter) {
    return request({
        url: api.bindForm,
        method: 'post',
        params: parameter
    })
}
